home *** CD-ROM | disk | FTP | other *** search
/ Wildcat Files 2 / The Wildcat Files 2 (Arsenal Computer).ISO / lans / 60-mem.txt next >
Text File  |  1994-04-28  |  6KB  |  116 lines

  1. Artisoft Technical Bulletin
  2. Dated: 04.11.94
  3. LANtastic NOS v6.0 and Memory Management
  4. Engineer: MWF
  5. ──────────────────────────────────────
  6.  
  7. New features in NOS 6.0 include the modular design of the REDIR.EXE
  8. and SERVER.EXE programs. Previous NOS versions would load all
  9. REDIR.EXE and SERVER.EXE code whether that function was enabled or
  10. not. Now it is possible to disable printing, auditing, notification,
  11. etc. in SERVER.EXE and the code needed to support these functions will
  12. not be loaded into memory thus making it possible to have a small
  13. installed SERVER.EXE program. Of course, increasing Network Tasks,
  14. Network Buffers, Cached resources, etc. will increase memory usage.
  15.  
  16. To accommodate the modular design of loading REDIR and SERVER, a
  17. loading function, called DOSLOAD, was incorporated into these
  18. programs. DOSLOAD can use Upper Memory Blocks (UMBs) to load into,
  19. thus allowing more room for REDIR and SERVER to load.
  20.  
  21. DOSLOAD Examples:
  22.  
  23. Example 1: When SERVER is executed, DOSLOAD determines if there are
  24. UMBs available. If a UMB of sufficient size is available (greater than
  25. 50K) and SERVER is being loaded low (into a conventional memory
  26. address), DOSLOAD code will load into the UMB and parse the SERVER
  27. command line switches (or NET_MGR settings). If enough memory exists
  28. (in this case, conventional memory) to load this configuration of
  29. SERVER, a check will then be made to see if enough memory exists to
  30. load COMMAND.COM after SERVER is installed. If any memory test fails,
  31. an error message is displayed ("Not enough memory - Reduce files,
  32. tasks, buffer size, ....") and SERVER is not loaded. If all memory
  33. tests pass, then SERVER is loaded into conventional memory
  34. (immediately above the last installed program), DOSLOAD terminates and
  35. unloads, freeing the UMB it was occupying. If a memory check for
  36. loading of COMMAND.COM were not made, and there was not enough memory
  37. available for COMMAND.COM to load, the server would lock and display
  38. "Cannot load COMMAND.COM, System halted" immediately after SERVER
  39. installed (not a good thing in most cases).
  40.  
  41. Example 2: EMM386.EXE loading SERVER.EXE high: DOSLOAD loads into
  42. conventional memory, reads the command line switches and loads SERVER
  43. into a UMB. Since SERVER is loading outside the conventional memory
  44. address range (greater than 80000h), a check for COMMAND.COM space is
  45. not made. Only the needed portions of SERVER are loaded so the
  46. initialization size is very close to the installed size. Using LH
  47. (LOADHIGH) it is possible to load a 59K (installed) SERVER.EXE into a
  48. 59K UMB! After SERVER is installed, DOSLOAD terminates and unloads,
  49. freeing the conventional memory it was using.
  50.  
  51. Example 3: QEMM386's LOADHI.COM loading SERVER high: QEMM386 defines
  52. regions (available portions of upper memory) where programs can load
  53. and attempts to load programs into a specific region. To do this,
  54. LOADHI.COM "masks" all other memory regions including all conventional
  55. memory (making them appear as used) and "forces" SERVER to load into
  56. the desired region. Since there is no other memory available, DOSLOAD
  57. cannot load into conventional memory or another UMB, so the memory
  58. region must be large enough to hold the DOSLOAD code and the installed
  59. size of SERVER. Plan on 105K minimum. As with EMM386's LOADHIGH, no
  60. check is made for COMMAND.COM space since the address is above 80000h.
  61.  
  62. SERVER will fail to load if the upper memory region is not large
  63. enough for DOSLOAD and SERVER code. There is no option for SERVER to
  64. load low because there is no conventional memory available (all used
  65. by LOADHI.COM).
  66.  
  67. Example 4: SERVER's "/NO_UMB" command line switch: This forces DOSLOAD
  68. code into conventional memory (from the top down). SERVER will then be
  69. installed either low or high, depending on the SERVER command line. 
  70.  
  71. Tips on QEMM386: 
  72.  
  73. 1.   If the region that SERVER will load into is less than 105K, try
  74.      removing the region specifier from the QEMM command line:
  75.      
  76.      From:          C:\QEMM\LOADHI /R:2 SERVER
  77.      To:       C:\QEMM\LOADHI SERVER
  78.      
  79.      LOADHI.COM will not "mask" all other available regions and there
  80.      may one region for DOSLOAD to use while it loads SERVER into
  81.      another.
  82.      
  83. 2.   If a page frame exists (EMS memory is active), try adding the
  84.      "/SQUEEZEF" switch to the LOADHI command:
  85.      
  86.      C:\QEMM\LOADHI /SQUEEZEF SERVER
  87.      
  88. 3.   This switch "squeezes" the EMS page frame out to increase the
  89.      size of an adjacent memory region, making it appear as though the
  90.      region is now 60K+ larger. After the program installs and goes
  91.      resident, the page frame is restored.
  92.      
  93. 4.   Use MS-DOS's (MS-DOS, PC-DOS, IBM-DOS) LH (LOADHIGH) command to
  94.      load SERVER into an upper memory region. The UMBs were created by
  95.      QEMM386.SYS and LOADHIGH will load SERVER into one of the
  96.      available UMBs. Unfortunately, there is no control over which
  97.      region the program will be loaded into.
  98.      
  99. Tips on 386MAX: 
  100.      
  101. 386MAX may have a problem with DOSLOAD's usage of UMB's which may
  102. result in "Memory allocation error, Cannot load COMMAND, system
  103. halted" messages accompanied by computer lockups (however, SERVER
  104. continues to function in the background). This has been observed when
  105. loading SERVER low (allowing DOSLOAD to use a UMB) and when removing
  106. REDIR and/or SERVER (this calls DOSLOAD also). Adding the "/NO_UMB"
  107. switch to REDIR and SERVER command lines has been successful:
  108.           
  109.      SERVER/NO_UMB            ;To load SERVER
  110.      SERVER/REMOVE/NO_UMB     ;To unload SERVER
  111.      REDIR/REMOVE/NO_UMB      ;To unload REDIR
  112.      
  113. ARTISOFT, Inc. makes no warranties as to the completeness or accuracy
  114. of this document. LANtastic is a registered trademark of ARTISOFT,
  115. Inc. Company names, brand names, and product names are trademarks or
  116. registered trademarks of their respective companies.